<?php 

echo $this->element('top_menu', array());

?>

<h1>user</h1>
<form action="/test_1/users/save" method="post">
<table>
    <tr>
        <th>Login</th>
        <th>Password</th>
        <th>Riconferma Password</th>
        <th>Gruppo</th>
    </tr>

	<tr>
		<td><input type="text" name="username"  /></td>
		<td><input type="text" name="password"  /></td>
		<td><input type="text" name="password2"  /></td>
		<td>
			<select name='group_id'>
				<?foreach ($groups as $key => $group) {?>
			  			<option value='<? echo $key?>' ><? echo $group ?></option>
				<? } ?> 
			</select> 
		</td>

	</tr>
	<tr>
		<td>
			<input type="submit" size="30" value="Conferma" />
		</td>
		<td>
			<a type="button" href="/test_1/users">Esci</a>
		</td>
	</tr>

	<?php unset($user); ?> 
</table>

</form>